{"action":"opened","issue":{"url":"https://api.github.com/repos/Code-Sharp/WampSharp-docs/issues/6","repository_url":"https://api.github.com/repos/Code-Sharp/WampSharp-docs","labels_url":"https://api.github.com/repos/Code-Sharp/WampSharp-docs/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Code-Sharp/WampSharp-docs/issues/6/comments","events_url":"https://api.github.com/repos/Code-Sharp/WampSharp-docs/issues/6/events","html_url":"https://github.com/Code-Sharp/WampSharp-docs/issues/6","id":177715160,"number":6,"title":"can't get your subscriber example to work","user":{"login":"ezra1","id":8339673,"avatar_url":"https://avatars.githubusercontent.com/u/8339673?v=3","gravatar_id":"","url":"https://api.github.com/users/ezra1","html_url":"https://github.com/ezra1","followers_url":"https://api.github.com/users/ezra1/followers","following_url":"https://api.github.com/users/ezra1/following{/other_user}","gists_url":"https://api.github.com/users/ezra1/gists{/gist_id}","starred_url":"https://api.github.com/users/ezra1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezra1/subscriptions","organizations_url":"https://api.github.com/users/ezra1/orgs","repos_url":"https://api.github.com/users/ezra1/repos","events_url":"https://api.github.com/users/ezra1/events{/privacy}","received_events_url":"https://api.github.com/users/ezra1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T06:57:47Z","updated_at":"2016-09-19T06:57:47Z","closed_at":null,"body":"Using the code below\r\n\r\nLinux OpenSuSe Tumbleweed / mono 4.4.2 /nuget Latest/WampSharp 1.2.5-beta/target net45\r\n\r\nDefaultWampChannelFactory doesn't seem to exist in WampSharp as imported on Linux\r\nIWampChannel channel =\r\n\t\t\t\tfactory.CreateJsonChannel(serverAddress, \"realm1\");\r\nSeems that CreateJsonChannel doesn't exist either\r\n\r\nAny Help would be appreciated\r\n\r\nusing System;\r\nusing System.Reactive.Linq;\r\nusing System.Reactive.Subjects;\r\nusing System.Threading.Tasks;\r\nusing WampSharp.V2;\r\nusing WampSharp.V2.Client;\r\n\r\n\r\nnamespace Wamp\r\n{\r\n\tinternal class Program\r\n\t{\r\n\t\tpublic static void Main(string[] args)\r\n\t\t{\r\n\t\t\tDefaultWampChannelFactory factory =\r\n\t\t\t\tnew DefaultWampChannelFactory();\r\n\r\n\t\t\tconst string serverAddress = \"wss://api.poloniex.com\";\r\n\r\n\t\t\tIWampChannel channel =\r\n\t\t\t\tfactory.CreateJsonChannel(serverAddress, \"realm1\");\r\n\r\n\t\t\tchannel.Open().Wait(5000);\r\n\r\n\t\t\tIWampRealmProxy realmProxy = channel.RealmProxy;\r\n\r\n\t\t\tint received = 0;\r\n\t\t\tIDisposable subscription = null;\r\n\r\n\t\t\tsubscription =\r\n\t\t\t\trealmProxy.Services.GetSubject<int>(\"XMR_BTC\")\r\n\t\t\t\t\t.Subscribe(x =>\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tConsole.WriteLine(\"Got Event: \" + x);\r\n\r\n\t\t\t\t\t\t\treceived++;\r\n\r\n\t\t\t\t\t\t\tif (received > 5)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tConsole.WriteLine(\"Closing ..\");\r\n\t\t\t\t\t\t\t\tsubscription.Dispose();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\tConsole.ReadLine();\r\n\t\t}\r\n\t}\r\n}"}}
{"actor":{"display_login":"ezra1"}}