Comments (9)
That should be a warning? It should still compile.
from ws.
It's an error and no binary is generated.
from ws.
What version of nim are you using?
from ws.
Nim Compiler Version 1.0.0 [Linux: amd64]
Compiled at 2019-10-01
Copyright (c) 2006-2019 by Andreas Rumpf
git hash: bb9298ca3b9e6f3bd4af8bd6c66ee7932b9e450d
from ws.
import ws, asyncdispatch, asynchttpserver
proc shrug() =
var server = newAsyncHttpServer()
# ... and the rest of your code
shrug()
¯\(ツ)/¯
@treeform thank for writing this lib!
from ws.
It only fails to compile when mutli thread is enabled
from ws.
Should I make a multi threaded version? I need to make it fail with threads.
from ws.
please do!
from ws.
Here you go: https://github.com/treeform/ws/blob/master/tests/chat_threads.nim
from ws.
Related Issues (20)
- out of memory HOT 7
- client.close() crashes server process HOT 2
- Exception: "WebSocket potocol missmatch" HOT 15
- Love this library <3
- Can't connect to socket.io even after transformation HOT 6
- Question: can this library be used when compiling to JS target HOT 1
- Can't ping eninge io websocket HOT 3
- Key not found: sec-websocket-protocol HOT 2
- "yield only allowed in iterator" error when trying example HOT 1
- All exceptions are WebSocketError. More specific exceptions possible? HOT 8
- Custom error types throwing "undeclared identifier" error when running examples from fresh nimble install on v0.4.3 HOT 3
- File Upload & Download Functionality HOT 2
- ws breaks Nim CI HOT 7
- Typo in README (complaint -> compliant)? HOT 1
- ws with JS backend? HOT 2
- Test example fails HOT 2
- server can't keep websocket connection alive and won't send any data HOT 14
- pingLoop causes SEGVs HOT 2
- Ws server protected by cloudflare vulnerable to simple attack HOT 2
- Poor performance while sending data through opened sockets HOT 1
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 ws.