MoroJSoro JS
DocsBenchmarksPlaygroundMigrate
GitHubGet started

Technical

API Reference & Architecture

DocsCLITechnical

Docs for @morojs/moro v1.8.0

Technical
API
Type Aliases
WebSocketEventHandler

@morojs/moro


@morojs/moro / WebSocketEventHandler

Type Alias: WebSocketEventHandler()

WebSocketEventHandler = (socket, data, callback?) => void | Promise<void>

Defined in: src/core/networking/websocket-adapter.ts:213

WebSocket event handler type

Parameters

socket

WebSocketConnection

data

any

callback?

(response?) => void

Returns

void | Promise<void>

Back to WebSocketEventHandlerView Source
MoroJSoro JS

A TypeScript backend framework with its own native engine. Zero dependencies, four runtimes.

Product

DocsBenchmarksPlaygroundCLIBlog

Compare

vs ExpressMigration guidesRoadmap

Community

GitHubDiscordXExamples

Legal

PrivacyTermsAbout
© CM Ventures, Inc. Built withfor the TypeScript community.