From: Christopher Date: Tue, 18 Feb 2020 21:15:44 +0000 (-0600) Subject: update README with new Session creation struct X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=b222443dd77d2d761370c3338967bc2be83d43b5;p=wampex_router.git update README with new Session creation struct --- diff --git a/README.md b/README.md index 6fcd30c..ca81142 100644 --- 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) ```