My Angular 2 app (coded in typescript) has a simple authentication scheme:
abc123...
Client opens the websocket, sending the UserName and Password in query param
ws://:@
Example: new $WebSocket('ws://user:123456@127.0.0.0/util')