connect()
connect([url])
Connects to wamp server. url parameter is the same as specified in Constructor. Returns promise
:
Resolved with connection details provided by server (roles, features, authentication details)
Rejected with error happened
try {
await wampy.connect();
} catch (e) {
console.log('connection failed', e);
}
await ws.connect('/my-socket-path');
let defer = ws.connect('wss://socket.server.com:5000/ws');
Last updated