implement sending level over websockets