Skip to content

Instantly share code, notes, and snippets.

View NeoyeElf's full-sized avatar
:octocat:
golang, gogogo

刘文哲 NeoyeElf

:octocat:
golang, gogogo
View GitHub Profile
@wanming
wanming / server.ts
Last active November 26, 2019 03:49
sse server
const sseServer = new SSEServer({
url: '/files/:fileGuid/pull'
})
const commentRegister = sseServer.register({
queryKeyword: 'comment',
getRoomId(context: SSEClientContext) {
return context.request.params.fileGuid
},
async fetch (commentId: string, context: any) {