AngularTS
    Preparing search index...

    Interface WebSocketConnection

    Managed WebSocket connection returned by $websocket.

    interface WebSocketConnection {
        close(): void;
        connect(): void;
        send(data: unknown): void;
    }
    Index

    Methods

    • Close the WebSocket connection and stop reconnect attempts.

      Returns void

    • Manually restart the WebSocket connection.

      Returns void

    • Send a JSON-serialized message through the native WebSocket.

      Parameters

      • data: unknown

      Returns void