Added hook for websocket to scala template