Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def isServiceChannel(channel):
    return channel.startswith("/service/bot") or channel.startswith("/bot")
        


src/o/p/OpenCoweb-1.0/coweb/moderator.py   OpenCoweb(Download)
 
from .serviceutil import getServiceNameFromChannel
from .serviceutil import isServiceChannel
from .serviceutil import isPublicBroadcast
from .bayeux.handler import InternalBayeuxHandler
    def onMessage(self, data):
        ch = data.get("channel", "")
        if isServiceChannel(ch):
            data = data["data"]
            isPub = isPublicBroadcast(ch)