PatrickJS/angular-websocket

feature request: base URL

robbiemu opened this issue · 0 comments

It'd be nice to be able to support connections to a port with relative URLs.. for example:

s = $websocket('ws://localhost:8080')
s.setUri('/user').send("LOGIN " + user) //using the current socket, send to uri localhost:8080/user
...
s.setUri('/main').send("LIST " request_body) // later, using the same socket, send to uri localhost:8080/main