ServerWebSocket extension type
Bun serevr websocket.
- on
- Implemented types
- Available extensions
Properties
- data → JSAny?
-
The upgrade contextual data.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- readyState → JSNumber
-
The websocket ready state.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
[JSNumber? code, JSString? reason]) → void - Close websocket.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
JSAny message, [bool? boolean]) → JSNumber - Send a message to client.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited