sc-endpoints
v0.1.7
Published
Module for creating socketcluster receivers and procedures by using classes and decorators.
Downloads
9
Readme
sc-endpoints
Module for creating socketcluster receivers and procedures by using classes and decorators.
@RegisterProcedure()
@AuthToken({type: 'user'})
@Data({
type: 'object',
properties: {
content: {
type: 'string',
minLength: 10
}
}
})
class SendMessaageEndpoint implements Procedure {
handle(socket: AGServerSocket,data: {email: string}, resp: Response) {
resp.end()
}
}