Dan Mizu
Dan Mizu
NNuxt
Created by Dan Mizu on 7/25/2024 in #❓・help
Connecting to External Websocket
I need to connect to the StreamElements platform to receive events when viewers of a stream follow, subscribe, etc. This is their example:
const socket = io('https://realtime.streamelements.com', {
transports: ['websocket']
});
const socket = io('https://realtime.streamelements.com', {
transports: ['websocket']
});
I was looking into the experimental websocket support that Nuxt is implementing and have enabled it in my config, but looking at the examples online so far have shown setting them up to have events pass between the server and client but havent seen an example of an external websocket connection. I need to eventually pass it a private token as well so I'd like to keep the entire connection server side. Can someone point me to an example or offer an idea as to how I would get that working? Many thanks in advance! https://dev.streamelements.com/docs/api-docs/5a84cc101a9c5-connecting-via-websocket-using-o-auth2
1 replies
NNuxt
Created by Dan Mizu on 5/13/2024 in #❓・help
Table listener akin to 'select', but for right clicking?
Is there a listener for the UTable component from Nuxt UI that passes the same data from the specific row clicked much like the select listener does? I am aware of contextmenu.prevent but that does not pass the data like select does. If not, is there a simple way to achieve that?
2 replies