Package org.angular.ts.ng
Interface WebSocketConnection
@JsType(isNative=true,
name="ng.WebSocketConnection",
namespace="<global>")
public interface WebSocketConnection
Managed WebSocket connection returned by $websocket.
-
Method Summary
-
Method Details
-
close
void close()Close the WebSocket connection and stop reconnect attempts. -
reconnect
void reconnect()Manually restart the WebSocket connection. -
send
Send a JSON-serialized message through the native WebSocket.- Parameters:
data- Value supplied for the data parameter.
-