Merge pull request #8 from lancatlin/hot-fix-server-socket

fix: send string
This commit is contained in:
Lin, Hung-Shin authored and GitHub committed 2023-08-08 20:37:08 +08:00
commit edfe197e51
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ export default (server) => {
const stream = await attachContainer(container, { token })
stream.on('data', (chunk) => {
socket.send(chunk)
socket.send(chunk.toString())
})
socket.on('message', function incoming(message) {