]> Entropealabs - wampex.git/commitdiff
update README with new Session creation struct
authorChristopher <chris@entropealabs.com>
Tue, 18 Feb 2020 21:15:44 +0000 (15:15 -0600)
committerChristopher <chris@entropealabs.com>
Tue, 18 Feb 2020 21:15:44 +0000 (15:15 -0600)
README.md

index 6fcd30c21131796135787f0ab28521d52dbe5ac1..ca81142cae16ee7c106f6a2b4acd5bafa68a2eac 100644 (file)
--- a/README.md
+++ b/README.md
@@ -44,7 +44,7 @@ url = "http://localhost:18080/ws"
 realm = %Realm{name: "com.myrealm"}
 
 roles = [Callee, Caller, Publisher, Subscriber]
-session = Session.new(url, realm, controller_roles)
+session = %Session{url: url, realm: realm, roles: controller_roles}
 
 Wampex.start_link(name: Connection, session: session)
 ```
@@ -65,7 +65,7 @@ url = "http://localhost:18080/ws"
 realm = %Realm{name: "com.myrealm"}
 
 roles = [Callee, Caller, Publisher, Subscriber]
-session = Session.new(url, realm, controller_roles, WebSocket, "wamp.2.json", JSON)
+session = %Session{url: url, realm: realm, roles: controller_roles, protocol: "wamp.2.json", serializer: JSON}
 
 Wampex.start_link(name: Connection, session: session)
 ```