{"action":"opened","issue":{"url":"https://api.github.com/repos/elpheria/rpc-websockets/issues/35","repository_url":"https://api.github.com/repos/elpheria/rpc-websockets","labels_url":"https://api.github.com/repos/elpheria/rpc-websockets/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/elpheria/rpc-websockets/issues/35/comments","events_url":"https://api.github.com/repos/elpheria/rpc-websockets/issues/35/events","html_url":"https://github.com/elpheria/rpc-websockets/issues/35","id":351295117,"node_id":"MDU6SXNzdWUzNTEyOTUxMTc=","number":35,"title":"Subscribing multiple events at once","user":{"login":"jhorology","id":7314717,"node_id":"MDQ6VXNlcjczMTQ3MTc=","avatar_url":"https://avatars1.githubusercontent.com/u/7314717?v=4","gravatar_id":"","url":"https://api.github.com/users/jhorology","html_url":"https://github.com/jhorology","followers_url":"https://api.github.com/users/jhorology/followers","following_url":"https://api.github.com/users/jhorology/following{/other_user}","gists_url":"https://api.github.com/users/jhorology/gists{/gist_id}","starred_url":"https://api.github.com/users/jhorology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhorology/subscriptions","organizations_url":"https://api.github.com/users/jhorology/orgs","repos_url":"https://api.github.com/users/jhorology/repos","events_url":"https://api.github.com/users/jhorology/events{/privacy}","received_events_url":"https://api.github.com/users/jhorology/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-16T17:17:07Z","updated_at":"2018-08-16T17:17:07Z","closed_at":null,"author_association":"NONE","body":"Now I'm developing a RPC server by Java and it's using more than thousand events.\r\nI would be gratefull if you could consider about following proposal.\r\n\r\n```\r\nws.subscribe(\"event1\", \"event2\",...,\"eventN\");\r\nor\r\nws.subscribe([\"event1\", \"event2\",...,\"eventN\"]);\r\n\r\n--> {\"jsonrpc\": \"2.0\", \"method\": \"rpc.on\", params:[\"event1\", \"event2\",...,\"eventN\"], \"id\": 1}\r\n<-- {\"jsonrpc\": \"2.0\", \"result\": {\"event1\": \"ok\", \"event2\": \"ok\",...,\"eventN\": \"ok\"}, \"id\": 1}\r\n```"}}
{"actor":{"display_login":"jhorology"}}