MoroJSoro JS
FeaturesDocsCLIMigrationsBenchmarksExamples
Features
Docs
CLI
Migrations
Benchmarks
Examples

© 2024 MoroJs

Technical

API Reference & Architecture

DocsCLITechnical

Version: 1.0.0

Last updated: 5/12/2026

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
MoroJS

The TypeScript-first toolkit for building ultra-fast APIs with zero-friction developer experience.

Product

  • Documentation
  • Examples
  • Playground
  • Roadmap

Community

  • GitHub
  • Discord
  • Twitter

Resources

  • Getting Started
  • API Reference
  • Migration Guide
  • Best Practices

Company

  • About
  • Careers
  • Privacy
  • Terms
© CM Ventures, Inc. Built withfor the TypeScript community.
Privacy PolicyTerms of Service
All systems operational