WebSocketMessage constructor

WebSocketMessage(
  1. MessageAction type, {
  2. String? msg,
  3. int code = 0,
  4. dynamic data,
})

Implementation

WebSocketMessage(this.type, {this.msg, this.code = 0, this.data});