Created websockets abstraction layer