internal MessageEventArgs(Opcode opcode, byte[] data) { if (data.LongLength > 9223372036854775807L) { throw new WebSocketException(CloseStatusCode.TooBig); } this._opcode = opcode; this._rawData = data; this._data = MessageEventArgs.convertToString(opcode, data); }
internal MessageEventArgs(Opcode opcode, PayloadData payload) { this._opcode = opcode; this._rawData = payload.ApplicationData; this._data = MessageEventArgs.convertToString(opcode, this._rawData); }