This message was deleted.
# announcements
s
This message was deleted.
s
The nodejs server sdk documentation is at https://docs.livekit.io/server-sdk-js/
The main thing you’ll need to get going is to generate access token (also explained in the main docs https://docs.livekit.io/guides/access-tokens) . Then you’ll need to send the token to the client (how you do that is up to you but genearlly it goes into your rest or graphql api)
🙏 2
As a final step, you’ll use the token on the client by passing it to the Room https://docs.livekit.io/#client-examples
🙏 1
c
@salmon-london-45375 thanks for the tips
@salmon-london-45375 i have my backend running on localhos:7000 and i tried to create a room as shown below
Copy code
const livekitHost = '<http://localhost:7000>';
 const svc = new RoomServiceClient(livekitHost, 'api-key', 'secret-key');
// create a new room
const opts = {
  name: 'myroom',
  // timeout in seconds
  emptyTimeout: 10 * 60,
  maxParticipants: 20
}
svc.createRoom(opts).then((room) => {
  console.log('room created', room)
})
but i got this error when i run the server. (node:41383) UnhandledPromiseRejectionWarning: Error: Request failed with status code 404 at createError (/Users/Username/Google Drive/CityHi/Server/node_modules/axios/lib/core/createError.js1615). am not really sure why, or dose it has to do with the localhost ?
s
the livekit host should be
<ws://localhost:7000>
, not http
c
@salmon-london-45375 Am still having this same error, the setup i have can bee seen on this gist https://gist.github.com/osain-az/b1b009f30455772366d92aa141002311
s
the nodejs server sdk enables your backend to communicate with the LiveKit server but the LiveKit server itself needs to run in a separate docker process
c
@salmon-london-45375 Thank you for your quick response. the setup is done and i can establish connection from the server/backend. Merry Christmas
🙌 1
👍 1