We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6bb487 commit 0928229Copy full SHA for 0928229
demos/rpc/server.ts
@@ -34,7 +34,12 @@ client.on('session.started', async (info: ConnectionInfo) => {
34
client.on('secure/inbound.gettime', async (_, reply: ReplyFunction) => {
35
console.log('Responding to gettime request...')
36
37
- await reply(new Date().toISOString(), 'ok').waitForAck()
+ await reply(
38
+ {
39
+ time: new Date().toISOString(),
40
+ },
41
+ 'ok',
42
+ ).waitForAck()
43
})
44
45
client.on('secure/inbound.presence', async (message: IncomingMessage) => {
0 commit comments