PatrickJS / angular-websocket

:arrow_upper_left: The missing Angular WebSocket module for connecting client applications to servers by @AngularClass
https://angularclass.github.io/angular-websocket
MIT License
1.22k stars 194 forks source link

feature request: base URL #97

Open robbiemu opened 8 years ago

robbiemu commented 8 years ago

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