Add receiveWSMessage function. Server is able to receive web socket messages.