working websockets api