Adding onclose property and fixing webSocketMessages