You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var ws = $websocket.$new('ws://localhost:12345');
ws.$on('$open', function () {
ws.$emit('ping', 'hi listening websocket server'); // send a message to the websocket server
}
this is the example given with the project !
but I want to know how should I send a message to "ws://localhost:12345/abc/ac" ?
as the example above ,$websocket.$new('ws://localhost:12345');
it just locate the host and port and not locate the context "/abc/ac" ,
where should I put the context?
and how should I send the messge ??
The text was updated successfully, but these errors were encountered:
var ws = $websocket.$new('ws://localhost:12345');
ws.$on('$open', function () {
ws.$emit('ping', 'hi listening websocket server'); // send a message to the websocket server
}
this is the example given with the project !
but I want to know how should I send a message to "ws://localhost:12345/abc/ac" ?
as the example above ,$websocket.$new('ws://localhost:12345');
it just locate the host and port and not locate the context "/abc/ac" ,
where should I put the context?
and how should I send the messge ??
The text was updated successfully, but these errors were encountered: