From b222443dd77d2d761370c3338967bc2be83d43b5 Mon Sep 17 00:00:00 2001 From: Christopher Date: Tue, 18 Feb 2020 15:15:44 -0600 Subject: [PATCH] update README with new Session creation struct --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ``` -- 2.45.3