Skip to content
#

socket-io

Here are 5,328 public repositories matching this topic...

AndreWin
AndreWin commented Jul 12, 2017

Hello!

When text line in list is too long and part of it is moved on the next line, list number is placed on the last line. When I use <br>, list number is placed on the first line of multiline text.

Demo is below:

image

Demo text:

1. [ ] task 1
2. [ ] task 2 task 2 task 2
strunkie30
strunkie30 commented Jun 25, 2019

Describe the bug
useConnectionNamespace isn't an option of Vuex, you can assign it only to the global option object.

Expected behavior
useConnectionNamespace is documented as global option.

Additional context
this one works:

Vue.use(new VueSocketIO({
    debug: true,
    connection: 'http://localhost:3000/overview',
    vuex: {
        store,
    },
    
jcergolj
jcergolj commented Oct 17, 2019

I spent many hours trying to set everything up on the server. Locally everything worked fine but on the server, there was an error. After many hours I realized that port 6001 was not forwarded. If requested/desired I can add a reminder to Readme file:

Make sure port 6001 is forwarded

Make sure port 6001 is forwarded (or whatever port you are using). For Ubuntu systems you can forward it

simingy
simingy commented Apr 14, 2020

Problem

  1. sio.connect() first connects to namespace / before connecting to other namespaces. Subsequent emit() commands are allowed before all namespaces are connected to - causing messages to disappear (due to namespace not connected yet).
    Adding asyncio.sleep(1) before the first emit() seems to fix the problem,

  2. in the documentation https://python-socketio.readthedocs.io/en

c common functions library extracted from my open source project FastDFS. this library is very simple and stable. functions including: string, logger, chain, hash, socket, ini file reader, base64 encode / decode, url encode / decode, fast timer, skiplist, object pool etc. detail info please see the c header files.

  • Updated May 17, 2020
  • C
pengliheng
pengliheng commented Sep 24, 2017
class TodoStore {
	@observable list = []
	@observable fetched = false
	@action emit = (url) => {
		this.fetched = true
		socket.emit(url)
	}

	@computed get on(){
		socket.on('get list',(json)=>{
			this.fetched = false
			this.list = json.map((index,i)=>{
				return new List(index)
			})
		})
	}
}

mobx正常模式没问题,严格模式下

[mobx] Invariant failed: Since strict-mode is ena

Improve this page

Add a description, image, and links to the socket-io topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the socket-io topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.