Stubbing websockets