mrniko / netty-socketio

Socket.IO server implemented on Java. Realtime java framework
Apache License 2.0
6.76k stars 1.65k forks source link

How to use SocketIOClient.get() and SocketIOClient.set() ? #358

Open wuhanqing opened 8 years ago

wuhanqing commented 8 years ago

The doc from socket.io says as below: The old io.set() and io.get() methods are deprecated and only supported for backwards compatibility. Here is a translation of an old authorization example into middleware-style.

mrniko commented 8 years ago

The old io.set() and io.get() methods are deprecated and only supported for backwards compatibility

Now Socket.IO uses other nodejs libs for this. Prior 1.0 version nodejs socketio project was more standalone. Now it relies on some libs exposes by nodejs. After 1.0 version this feature was deprecated because other nodejs libs offers such function. As for netty-socketio this feature will not be depreacted, because it's a fully standalone project.

wuhanqing commented 8 years ago

@mrniko If client use 'socket.property=value' instead old io.set(), has any way to get the property by netty-socketio?