Comments (2)
Hey Kris! Thanks so much, that did the trick!
from hocuspocus.
Hey throw null
or return a rejected Promise without a reason:
const server = Server.configure({
onConnect(data) {
const { documentName } = data
const documentSpace = documentName.split('/')
const entityId = documentSpace[1].split('.')
if ( entityId.length !== 2 ) {
return Promise.reject()
}
return Promise.resolve()
},
})
from hocuspocus.
Related Issues (20)
- y-websocket provider throws unknown type error and RangeError with Hocuspocus server HOT 3
- TiptapTransformer initial content html in ydoc duplicates. HOT 1
- HocusPocusProvider V2 initiates 2 connections despite setting the connect flag to false HOT 3
- Request: Do not require 'token' to be set by Provider for OnAuthenticate in Client HOT 8
- TiptapTransformer initial content setting removes all <img> and <table> tags HOT 5
- Type "onStoreDocumentPayload" does not have expected optional variable 'update' HOT 2
- TiptapTransformer shows error on img tag HOT 3
- Redis extension does not disconnect pub/sub clients onDestroy HOT 1
- How to pass Hocuspocus errors to front end? HOT 2
- `connection` can be either Connection or ConnectionConfiguration HOT 1
- History using the Collaboration extension doesn't seem to work HOT 7
- Proper Documentation for Multiplexing HOT 6
- Converting an initial html content to ydoc with a NodeJS server and saving it in database does not work. HOT 5
- Document is always empty HOT 3
- broadcastStateless extend exclude Connection param HOT 1
- CLI fails to run server, error: The option `alias` has been renamed to `shortFlag`. The following flags need to be updated: `--port`, `--webhook`, `--sqlite` HOT 3
- Running playground locally depends on 192.168.0.7? HOT 1
- Request: throttle updates sent from the client
- Failed to resolve entry for package "@hocuspocus/provider". HOT 2
- Server doesn't export DirectConnection HOT 2
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 hocuspocus.