init context from within websocket process