We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行客户端程序
> library(websockets) > client = websocket("ws://192.168.1.201",port=7681) > rece<-function(DATA, WS, HEADER) { + D='' + if(is.raw(DATA)){ + cat("raw data") + D = rawToChar(DATA) + } + cat("==>",D,"\n")} > set_callback("receive",rece, client) > websocket_write("2222", client) [1] 1 > service(client) raw data==> You sent 2222 > websocket_close(client) Client socket 3 was closed.
转行问题, 改为
> library(websockets) > client = websocket("ws://192.168.1.201",port=7681) > rece<-function(DATA, WS, HEADER) { + D='' + if(is.raw(DATA)){ + cat("raw data") + D = rawToChar(DATA) + } + cat("==>",D,"\n") +} > set_callback("receive",rece, client) > websocket_write("2222", client) [1] 1 > service(client) raw data==> You sent 2222 > websocket_close(client) Client socket 3 was closed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
运行客户端程序
转行问题, 改为
The text was updated successfully, but these errors were encountered: