Skip to content

Commit

Permalink
fix(bun): export BunWebSocketHandler (#3964)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Feb 28, 2025
1 parent a2ec848 commit 8796371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter/bun/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface BunServerWebSocket<T> {
readyState: 0 | 1 | 2 | 3
}

interface BunWebSocketHandler<T> {
export interface BunWebSocketHandler<T> {
open(ws: BunServerWebSocket<T>): void
close(ws: BunServerWebSocket<T>, code?: number, reason?: string): void
message(ws: BunServerWebSocket<T>, message: string | { buffer: ArrayBufferLike }): void
Expand Down

0 comments on commit 8796371

Please sign in to comment.