IPWorks 2020 JavaScript Edition

Questions / Feedback?

Connect Method

Connects to the specified host.

Syntax

async websocket.connect(URL : string): Promise<void>

Remarks

The Connect method will establish a WebSocket connection to the host and port specified in the URL parameter. The URL must be specified in the format "ws://host:[port]/[URI]" for plain-text connections or "wss://host:[port]/[URI]" for SSL enabled connections.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 JavaScript Edition - Version 20.0 [Build 8292]