In this code
|
import { Server } from 'mock-socket'; |
|
|
|
class ChatApp { |
|
constructor(url) { |
|
this.messages = []; |
|
this.connection = new WebSocket(url); |
is WebSocket a regular one, or should it be imported from the library so that it can be mocked. In other word, is the URL mocked or the URL and the websocket?
In this code
mock-socket/README.md
Lines 39 to 44 in 47eab99
is
WebSocketa regular one, or should it be imported from the library so that it can be mocked. In other word, is the URL mocked or the URL and the websocket?