Comments (8)
I have started some coding to check it.
Do you know why in the test has been used connection.socket
?
It is a matter only of streaming-apis and eventemitter-apis?
from fastify-websocket.
from fastify-websocket.
This is one example:
fastify-websocket/test/router.js
Lines 119 to 123 in 68f2b4c
from fastify-websocket.
from fastify-websocket.
Hi. That test is correct since it test Should close on unregistered path
. Calling it on unregistered path (/
) just closes the connection. That's the point of that test.
@Eomm I really don't understand you initial question, can you elaborate?
from fastify-websocket.
What is the difference with https://github.com/gj/fastify-ws ?
from fastify-websocket.
What is the difference with https://github.com/gj/fastify-ws ?
This library has many more features.
from fastify-websocket.
Closing since this issue has been completed in #38
from fastify-websocket.
Related Issues (20)
- It's not working with WSS
- TypeScript error "All declarations of 'RouteOptions' must have identical type parameters" HOT 1
- websocket status is always CONNECTING HOT 3
- connection.socket.on('open') doesn't work HOT 4
- Local Testing fails with "Should not hijack reply"-tests HOT 1
- [FSTDEP014] FastifyDeprecation: You are trying to set/access the default route. HOT 15
- Fastify deprecates getDefaultRoute/setDefaultRoute HOT 1
- How can I make multiple servers sharing a single HTTP/S server HOT 3
- TS2314: Generic type 'FastifyInstance ' requires 5 type argument(s). HOT 4
- Node server crashes with ERR_INTERNAL_ASSERTION error HOT 11
- Unable to connect to WS, status remains connecting on Postman HOT 3
- req.query is undefined HOT 2
- WebSocket type is resolved to any using moduleResolution: "bundler" and ESM HOT 1
- Allow specifying alternative preClose / modifying close flow HOT 2
- Cannot connect to WebSocket server HOT 1
- typebox typings tests fail HOT 1
- connections is of type _Request while request is of type Reply HOT 1
- fix a typescript generic type error
- Fix Websocket Types: TS1259 because "ws" package using "export ="
- preClose not typed 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 fastify-websocket.