WebSocket class getters

getPort

Returns the port number used by the protocol instance.

Arguments

Copied to clipboard!
unsigned int getPort()

isSslConnection

Returns a boolean indicating if the protocol instance is using SSL or not.

Arguments

Copied to clipboard!
bool isSslConnection()

Usage

Copied to clipboard!
kuzzleio::WebSocket *protocol = new kuzzleio::WebSocket("kuzzle");

unsigned int port = protocol->getPort();

bool ssl_connection = protocol->isSslConnection();