Start of websocket mixin