Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Following the Server-only via WebSocketServer() and Node.js docs, I am loading in an arrow file on the node server using
host.host_table("table_one", table);
. I want to be able to overwrite this data table and replace it with a new one. What's the best way to do that?I don't see any docs for the
WebSocketServer
api but looking at the source code, I see it has aneject_table
method which I can use like this:This seems to work and ejecting a table that does not exist doesn't throw an error. Is this the best pattern?
Note:
The only issue I'm running into this is on the client where if the schema of my first file contains a subset of fields on the file that replaces it, the perspective viewer will not display those additional columns. I think I can play around with the perspective viewer, though, and have it reset its filters...This seems to have worked to reset the state on the client:Beta Was this translation helpful? Give feedback.
All reactions