src/main/resources/static/application.js
/**
 * Connect to the web socket server.
 */
Connect to the web socket server.
Connect to the web socket server .
function connect() {
    webSocket = new WebSocket(buildWebSocketUrl());
    webSocket.onopen = webSocketOnOpen;
    webSocket.onclose = webSocketOnClose;
    webSocket.onerror = webSocketOnError;
    webSocket.onmessage = webSocketOnMessage;
}
function connect ( ) { webSocket = new WebSocket ( buildWebSocketUrl ( ) ) ; webSocket . onopen = webSocketOnOpen ; webSocket . onclose = webSocketOnClose ; webSocket . onerror = webSocketOnError ; webSocket . onmessage = webSocketOnMessage ; }
Connect to the web socket server.
Connect to the web socket server .