Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    August 2016
    Posts
    2

    Preventing Server from sending some events to clients

    Hi,

    I'm working with the ts3_sdk_3.0.3.2 SDK and i have a couple questions about how to correctly implement them.

    I have a user that is creating a Channel in a server, the client will send the create channel request and wait for the corresponding callback. From what i have seen about the way TS works, when the channel is created, the created channel event is broadcasted to all currently connected clients, with the invokerID set to the ID of the client that requested the creation.

    My question is, if there is a way to make it so the server only sends the event to the specific client that requested the channel creation, i don't need any other client to know about that event.

    Also, i wanted to segment users into channels following a logic for my application, i need users to talk in pairs, and at no given point in time there will be more that two users in the same "Channel" i was wondering if in terms of implementation is better to create a channel for each pair of users or work with the whisper lists? It seems that i can achieve it using both approaches.

    Also thinking about the same scenario, i want a user to create a channel if it doesn't exist automatically when connected to the server and join the channel without having to do the complete flow in the client of waiting for the connection, then creating the channel when it doesn't exist, the moving the client to that channel. Similar to what happens if you specify a default channel in the connection and the channel exists, the user will join it immediately.

  2. #2
    Join Date
    May 2016
    Location
    Idar-Oberstein
    Posts
    163
    Quote Originally Posted by ifernandez View Post
    My question is, if there is a way to make it so the server only sends the event to the specific client that requested the channel creation, i don't need any other client to know about that event.
    There's currently no option to do that.

    Quote Originally Posted by ifernandez View Post
    Also, i wanted to segment users into channels following a logic for my application, i need users to talk in pairs, and at no given point in time there will be more that two users in the same "Channel" i was wondering if in terms of implementation is better to create a channel for each pair of users or work with the whisper lists? It seems that i can achieve it using both approaches.
    Both approaches can be found in the wild. Personally I prefer whisper lists as I find that more straight forward than create and switch channels.

    Quote Originally Posted by ifernandez View Post
    Also thinking about the same scenario, i want a user to create a channel if it doesn't exist automatically when connected to the server and join the channel without having to do the complete flow in the client of waiting for the connection, then creating the channel when it doesn't exist, the moving the client to that channel. Similar to what happens if you specify a default channel in the connection and the channel exists, the user will join it immediately.
    Similar to the client, if the channel exists, utilizing ts3client_startConnection with the default channel array will work.
    Channel creation will have to be done on failure manually, though.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Not possible] servernotifyregister all events on server
    By Facha in forum Tools / Web Based
    Replies: 1
    Last Post: February 16th, 2016, 08:58 PM
  2. Replies: 1
    Last Post: September 25th, 2015, 11:54 AM
  3. Teamspeak server preventing certain features from working
    By Techcuron in forum Permission System
    Replies: 4
    Last Post: July 17th, 2015, 01:35 AM
  4. Preventing server admins from removing others server admin?
    By Lunchboxx.exe in forum Permission System
    Replies: 2
    Last Post: January 31st, 2011, 02:10 PM
  5. Preventing Server Groups From Switching Channels
    By ryguy999 in forum Permission System
    Replies: 3
    Last Post: January 25th, 2011, 08:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •