channels/server: refactor to match WTSApi + avoid conflicts