mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
Merge pull request #8 from lancatlin/hot-fix-server-socket
fix: send string
This commit is contained in:
1 file changed
+1
-1
@@ -50,7 +50,7 @@ export default (server) => {
|
|||||||
const stream = await attachContainer(container, { token })
|
const stream = await attachContainer(container, { token })
|
||||||
|
|
||||||
stream.on('data', (chunk) => {
|
stream.on('data', (chunk) => {
|
||||||
socket.send(chunk)
|
socket.send(chunk.toString())
|
||||||
})
|
})
|
||||||
|
|
||||||
socket.on('message', function incoming(message) {
|
socket.on('message', function incoming(message) {
|
||||||
|
|||||||
Reference in new issue
Block a user