To use the Event Manager Websocket library you only need to follow very simple steps.
On the server side, first make sure you have a valid websocket configuration file and it is pointed to properly by
Secondly simply call the following function to start up the websocket server:
imm_handle handle = imm_initialize_library( license, room_layout, websocket_config_path, library_config, error_code ); imm_enable_websockets( handle, true );
The server will run perpetually allowing clients to connect, send, and receive messages until you call the following function to stop it:
imm_enable_websockets( handle, false ); // stop manually imm_destroy_library( handle ); // stop automatically upon destroying the library
And that is it! The server will take care of the rest.