Added websocket base function
Added websocket controller