add client client messaging
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
<button onclick="showForm('get-connections')">POST /get/connections</button>
|
||||
<button onclick="showForm('get-members')">POST /get/group/members</button>
|
||||
<button onclick="showForm('del-group')" class="warn">POST /del/group</button>
|
||||
<button onclick="showForm('msg-user')">POST /msg/user</button>
|
||||
<button onclick="showForm('msg-group')">POST /msg/group</button>
|
||||
<button onclick="showForm('websocket')">WS /ws</button>
|
||||
</div>
|
||||
@@ -235,6 +236,15 @@
|
||||
],
|
||||
submit: () => httpPost('/del/group', { token:'dg-token', groupid:'dg-groupid' })
|
||||
},
|
||||
'msg-user': {
|
||||
title: 'POST /msg/user — send direct message to user',
|
||||
fields: [
|
||||
{ id: 'mu-token', label: 'token', ph: '' },
|
||||
{ id: 'mu-recipientid', label: 'recipientid', ph: 'uint32' },
|
||||
{ id: 'mu-message', label: 'message', ph: 'message text' },
|
||||
],
|
||||
submit: () => httpPost('/msg/user', { token:'mu-token', recipientid:'mu-recipientid', message:'mu-message' })
|
||||
},
|
||||
'msg-group': {
|
||||
title: 'POST /msg/group — send message to group',
|
||||
fields: [
|
||||
|
||||
Reference in New Issue
Block a user