mirror of
https://github.com/LukeHagar/crossws.git
synced 2025-12-09 20:37:49 +00:00
@@ -105,7 +105,7 @@ export interface Hooks {
|
||||
*/
|
||||
upgrade: (
|
||||
request: UpgradeRequest & { context: Peer["context"] },
|
||||
) => MaybePromise<Response | ResponseInit | undefined>;
|
||||
) => MaybePromise<Response | ResponseInit | void>;
|
||||
|
||||
/** A message is received */
|
||||
message: (peer: Peer, message: Message) => MaybePromise<void>;
|
||||
|
||||
Reference in New Issue
Block a user