Skip to content
New issue

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

例子中的配置文件的含义 #3

Open
llqgit opened this issue Jul 21, 2016 · 1 comment
Open

例子中的配置文件的含义 #3

llqgit opened this issue Jul 21, 2016 · 1 comment

Comments

@llqgit
Copy link

llqgit commented Jul 21, 2016

export default {
  on: true, //是否开启 WebSocket
  type: "socket.io",
  allow_origin: "",
  sub_protocal: "",
  adapter: undefined,
  path: "", //url path for websocket
  messages: {
    open: 'home/index/open',
    close: 'home/index/close',
    chat: 'home/index/chat',
    typing: 'home/index/typing',
    stoptyping: 'home/index/stoptyping',
    adduser: 'home/index/adduser'
  }
};

请问,这个里边的 path 是什么意思path: "", //url path for websocket

  allow_origin: "",
  sub_protocal: "",
  adapter: undefined,

虽然这三个还没用到,但是也不知道什么意思,官网的doc说的也不充分。

我想在 websocket 的 url 上加一个路径,然后能够这样连接 socket.io

io('http://127.0.0.1:8080/test');
@Thinkingpey
Copy link

遇到了同样的问题,加了官方群,发现都是一群吹逼的人,哎……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants