Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upNative WebSocket support #90
Comments
This comment has been minimized.
This comment has been minimized.
jsen-
commented
Jan 2, 2017
SergioBenitez
added
the
enhancement
label
Jan 3, 2017
SergioBenitez
added this to the
0.60 milestone
Jan 3, 2017
This comment has been minimized.
This comment has been minimized.
|
This is indeed planned. |
SergioBenitez
modified the milestones:
0.6.0,
0.7.0
Jan 3, 2017
This comment has been minimized.
This comment has been minimized.
wagenet
commented
May 1, 2017
|
@SergioBenitez got any suggestions for how one could manually add web socket support? |
This comment has been minimized.
This comment has been minimized.
|
@wagenet Do you mean to Rocket or to your web application? The former is subtle is it requires a lot of design work, but the latter should be straightforward. You should be able to use the fn main() {
thread::spawn(|| {
listen("127.0.0.1:3012", |out| {
move |msg| {
out.send(msg)
}
})
})
rocket.ignite()..more()..launch()
} |
This comment has been minimized.
This comment has been minimized.
wagenet
commented
May 30, 2017
|
@SergioBenitez thanks :) I ended up discovering this sort of approach myself. |
net commentedJan 1, 2017
I think Rocket would benefit heavily from native WebSocket support. Even better would be something similar to Phoenix's channels.
It's great to see such a comprehensive web framework for Rust coming together!