Fix bug, Support thirdparty streaming access
This commit is contained in:
parent
fa591e5c9b
commit
2ded8ba858
4 changed files with 31 additions and 18 deletions
|
|
@ -9,7 +9,7 @@ class Connection
|
|||
@event = riot.observable!
|
||||
@me = me
|
||||
host = CONFIG.api.url.replace \http \ws
|
||||
@socket = new ReconnectingWebSocket "#{host}/messaging?otherparty=#{otherparty}"
|
||||
@socket = new ReconnectingWebSocket "#{host}/messaging?i=#{me.token}&otherparty=#{otherparty}"
|
||||
|
||||
@socket.add-event-listener \open @on-open
|
||||
@socket.add-event-listener \message @on-message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue