server.jscode
'use strict'
let app = require('http').createServer(handler)
let io = require('socket.io')(app)
app.listen(3000)
console.log('Listening at http://localhost:3000/')
function handler (req, res) {
res.writeHead(200)
res.end('Testing server for http://github.com/wedeploy/gosocket
why EOF ??
在 2019年4月2日星期二 UTC+8上午12:10:10,feihong' yu写道:
>
> https://github.com/kr/pty/issues/76
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
https://github.com/kr/pty/issues/76
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://grou
i got error at log.Printf("Failed to read from pty master: %s", err)
在 2019年4月2日星期二 UTC+8上午12:05:05,feihong' yu写道:
>
> # server.js
> ```
>
> 'use strict'
>
> let app = require('http').createServer(handler)
> let io = require('soc
# server.js
```
'use strict'
let app = require('http').createServer(handler)
let io = require('socket.io')(app)
app.listen(3000)
console.log('Listening at http://localhost:3000/')
function handler (req, res) {
res.writeHead(200)
res.end('Testing server for http://github.com/wedeploy/gosock
package main
import (
"fmt"
"io"
"os"
"os/exec"
"strings"
"time"
"github.com/kr/pty"
)
func main() {
c := exec.Command("/bin/bash", "-l")
c.Env = append(os.Environ(), "TERM=xterm")
tty, _ := pty.Start(c)
s