S
SolidJS4mo ago
Dakotys

Is there a way to get Server Reference inside SolidStart? or other way to use webSockets

I just want to know if there is way to get to server reference that would be usable inside Socket.io. Or if there is other way to use WebSockets. Server reference used to be inside FetchEvent : https://github.com/solidjs/solid-start/issues/1017, https://github.com/solidjs/solid-start/pull/1018. Inside event object are now: [ 'request', 'response', 'clientAddress', 'locals', 'nativeEvent' ]. This is example utilizing it in older version of SolidStart: https://github.com/Mirza-Glitch/solid-start-socket.io.
0 Replies
No replies yetBe the first to reply to this messageJoin