Skip to content

SimpleConnectPolicy

Class: jstp.SimpleConnectPolicy

Simple generic connection provider. Used for client-side connection. Sends handshake with login/password or session ID if provided, otherwise sends anonymous handshake. You are free to implement whatever suits your needs instead.

simpleConnectPolicy.connect(app, connection[, session], callback)

Should send handshake message with appropriate credentials. You can get client object provided upon connection creation with connection.client.