Fix typo: onMessageRecieved -> onMessageReceived (#652)

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
Javier Cuevas
2024-04-28 12:08:10 +01:00
committed by GitHub
parent 9075086be4
commit 8c61f6719f

View File

@@ -306,7 +306,7 @@ export const makeSocket = (config: SocketConfig) => {
}
}
const onMessageRecieved = (data: Buffer) => {
const onMessageReceived = (data: Buffer) => {
noise.decodeFrame(data, frame => {
// reset ping timeout
lastDateRecv = new Date()
@@ -565,7 +565,8 @@ export const makeSocket = (config: SocketConfig) => {
})
}
ws.on('message', onMessageRecieved)
ws.on('message', onMessageReceived)
ws.on('open', async() => {
try {
await validateConnection()