ServiceWebhookServer class
- Inheritance
-
- Object
- WebhookServer
- ServiceWebhookServer
Constructors
- ServiceWebhookServer({required Portable factory(), required String? path, required String? webhookSecret, required bool supportsWebSockets})
Properties
- factory → Portable Function()
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
finalinherited
- path → String
-
finalinherited
- port → int
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsWebSockets → bool
-
finalinherited
- validateWebhookSecret → bool
-
finalinherited
- webhookSecret → String?
-
finalinherited
Methods
-
handleHttpRequest(
HttpRequest req) → Future< bool> -
You’ll also want some hook so the HTTP server can pass requests here.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCall(
CallEvent event) → Future< void> -
Equivalent to
on_calloverride -
onCallAnswered(
RoomClient room) → Future< void> -
Override in subclasses as needed.
override
-
onRoomEnded(
RoomEndedEvent event) → Future< void> -
Override in subclasses as needed.
inherited
-
onRoomStarted(
RoomStartedEvent event) → Future< void> -
Override in subclasses as needed.
inherited
-
onWebhook(
{required Map< String, dynamic> payload}) → Future<void> -
inherited
-
start(
) → Future< void> -
No-op by default – in a “shared app” scenario the outer host controls
the actual HttpServer.
inherited
-
stop(
) → Future< void> -
No-op by default.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited