Interface IServiceProvider
Methods
add
-
Parameters
-
-
callback: function
-
- (err: Error | null, server?: Server): void
-
Parameters
-
err: Error | null
-
Optional server: Server
Returns void
Returns void
create
-
Parameters
Returns Server
emit
- emit(event: "request", request: IMimicRequest): boolean
- emit(event: "delete", id: string): boolean
-
Parameters
Returns boolean
-
Parameters
-
event: "delete"
-
id: string
Returns boolean
on
- on(event: "request", callback: function): this
- on(event: "delete", callback: function): this
-
Parameters
-
event: "request"
-
callback: function
Returns this
-
Parameters
-
event: "delete"
-
callback: function
Returns this