actix / sockjs Goto Github PK
View Code? Open in Web Editor NEWSockJS server for rust language
License: Apache License 2.0
SockJS server for rust language
License: Apache License 2.0
On this line here:
https://github.com/actix/sockjs/blob/master/examples/chat.rs#L54
What is the correct way to create a non-default Actor/etc that isn't generated from Default::default()?
It seems the HttpConext has changed its API and Event Source transport does not work well.
Hey there, I would like to contribute to this project, although I'm relatively new to rust but if anyone can point me to the right direction towards how to go about upgrading it to the latest actix-web would be a good start.
I'm at your disposal ๐คฃ
Thanks
rustc 1.26.0 (a77568041 2018-05-07)
error[E0277]: `()` doesn't implement `std::fmt::Display`
--> /Users/intellild/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/sockjs-0.3.0/src/transports/xhrsend.rs:89:49
|
89 | Err(error::ErrorNotFound(())),
| ^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
|
= help: the trait `std::fmt::Display` is not implemented for `()`
= note: required by `actix_web::error::ErrorNotFound`
error[E0277]: `()` doesn't implement `std::fmt::Display`
--> /Users/intellild/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/sockjs-0.3.0/src/transports/jsonp.rs:271:49
|
271 | Err(error::ErrorNotFound(())),
| ^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
|
= help: the trait `std::fmt::Display` is not implemented for `()`
= note: required by `actix_web::error::ErrorNotFound`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.
error: Could not compile `sockjs`.
Can't build with latest version of actix-web. Here is the error:
C:\Users\candronikos\Projects\project>cargo build
error: multiple packages link to native library `ring-asm`, but a native library can be linked only once
package `ring v0.13.2`
... which is depended on by `cookie v0.11.0`
... which is depended on by `actix-web v0.7.3`
... which is depended on by `project v0.1.0 (file:///C:/Users/candronikos/Projects/project)`
links to native library `ring-asm`
package `ring v0.12.1`
... which is depended on by `cookie v0.10.1`
... which is depended on by `actix-web v0.5.8`
... which is depended on by `sockjs v0.3.0`
... which is depended on by `project v0.1.0 (file:///C:/Users/candronikos/Projects/project)`
also links to native library `ring-asm`
and run broadcaster in separate thread
modify example and test server
Bringing the project up to the latest actix should fix that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.