ws.on('error', console.error)
ws.on('message', (message: RawData) => {
const { data, type } = JSON.parse(
- // eslint-disable-next-line @typescript-eslint/no-base-to-string
+
message.toString()
) as MessagePayload<DataPayload>
switch (type) {
ws.on('error', console.error)
ws.on('message', (message: RawData) => {
const { data, type } = JSON.parse(
- // eslint-disable-next-line @typescript-eslint/no-base-to-string
+
message.toString()
) as MessagePayload<DataPayload>
switch (type) {