Comments (6)
Why the chat.py is not working yet?
from gevent-socketio.
@suzanshakya I'm also trying to run the examples. I had to change this in the chat.py file:
self.emit_to_room('msg_to_room', msg, 'main_room')
To this:
self.emit_to_room('main_room', 'msg_to_room', msg)
I'm using the version 0.3.5 beta (although the init file says it's version 0.3.1).
Hope this helps.
from gevent-socketio.
@dmfrancisco Thanks, that worked but own message is displayed twice as 'me' and given nickname.
@dkoneill Thanks. That works like a charm.
from gevent-socketio.
@suzanshakya Yes, there is a broadcast_event_not_me
method (which broadcasts to everyone except itself) but there isn't a emit_to_room_not_me
method. However, it's simple to extend the default RoomsMixin
and add such method. Here is how I've done it: https://gist.github.com/951e149d62b048e9e468
Hope this helps.
EDIT: I had not seen @dkoneill commit. It seems the issue is solved :)
from gevent-socketio.
@dmfrancisco That seems to work. But I'll settle with @dkoneill commit for now.
from gevent-socketio.
This looks fixed. Can we close?
from gevent-socketio.
Related Issues (20)
- How to broadcast data to a room (of socket io) when the server receives data from somewhere else (not using socket io)
- headers use integer for Access-Control-Max-Age HOT 1
- GeventSocketIOWorker fails to boot when used with gunicorn and ssl flags
- WebSocket is closed before the connection is established. HOT 1
- gevent UnicodeError HOT 3
- django.utils.importlib is removed in Django 1.9 HOT 1
- Merge working tests MR and ask people to rebase
- About renaming the "socketio" library name
- BaseNamespace.session
- SSL Error
- Django 1.10 Support
- django example won't install
- WebSocketError: Received "Socket is dead".
- My chat room sometimes the user sends the text all become?????
- how to run socket.io chat app from two different ports
- Tag 668d11edbd62052cde1583be1e1d0512c930f16d as 0.3.6?
- Release 0.3.7 with post-0.3.6 fixes? HOT 1
- Is it possible to use gevent-socketio as a socket.io client? HOT 1
- KeyError: 'socketio' in socketio_manager
- Version compatability issue on Executing Tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gevent-socketio.