rest-vir - v1.0.0
    Preparing search index...

    Function verifyWebSocketMessage

    • Verifies that the given WebSocket message matches the defined expectations for the given message source.

      Type Parameters

      • const SpecificWebSocket extends {
            messageFromClientShape: any;
            messageFromHostShape: any;
            MessageFromHostType: any;
            path: `/${string}`;
            service: { serviceName: string };
        }
      • Location extends WebSocketLocation

      Parameters

      • webSocketDefinition: Readonly<SpecificWebSocket>
      • message: any

        The raw message data.

      • messageSentFrom: Location

        The location from which the message was sent.

      Returns SpecificWebSocket["MessageFromHostType"]