Partial websockets implementation