|  | 
| 94 | 94 | 
 | 
| 95 | 95 | class PubNubCore: | 
| 96 | 96 |     """A base class for PubNub Python API implementations""" | 
| 97 |  | -    SDK_VERSION = "9.0.0" | 
|  | 97 | +    SDK_VERSION = "9.1.0" | 
| 98 | 98 |     SDK_NAME = "PubNub-Python" | 
| 99 | 99 | 
 | 
| 100 | 100 |     TIMESTAMP_DIVIDER = 1000 | 
| @@ -215,12 +215,13 @@ def where_now(self, user_id: Optional[str] = None): | 
| 215 | 215 | 
 | 
| 216 | 216 |     def publish(self, channel: str = None, message: any = None, should_store: Optional[bool] = None, | 
| 217 | 217 |                 use_post: Optional[bool] = None, meta: Optional[any] = None, replicate: Optional[bool] = None, | 
| 218 |  | -                ptto: Optional[int] = None, ttl: Optional[int] = None) -> Publish: | 
|  | 218 | +                ptto: Optional[int] = None, ttl: Optional[int] = None, custom_message_type: Optional[str] = None | 
|  | 219 | +                ) -> Publish: | 
| 219 | 220 |         """ Sends a message to all channel subscribers. A successfully published message is replicated across PubNub's | 
| 220 | 221 |         points of presence and sent simultaneously to all subscribed clients on a channel. | 
| 221 | 222 |         """ | 
| 222 | 223 |         return Publish(self, channel=channel, message=message, should_store=should_store, use_post=use_post, meta=meta, | 
| 223 |  | -                       replicate=replicate, ptto=ptto, ttl=ttl) | 
|  | 224 | +                       replicate=replicate, ptto=ptto, ttl=ttl, custom_message_type=custom_message_type) | 
| 224 | 225 | 
 | 
| 225 | 226 |     def grant(self): | 
| 226 | 227 |         """ Deprecated. Use grant_token instead """ | 
| @@ -274,8 +275,8 @@ def fire(self, channel: str = None, message: any = None, use_post: Optional[bool | 
| 274 | 275 |              meta: Optional[any] = None) -> Fire: | 
| 275 | 276 |         return Fire(self, channel=channel, message=message, use_post=use_post, meta=meta) | 
| 276 | 277 | 
 | 
| 277 |  | -    def signal(self, channel: str = None, message: any = None) -> Signal: | 
| 278 |  | -        return Signal(self, channel=channel, message=message) | 
|  | 278 | +    def signal(self, channel: str = None, message: any = None, custom_message_type: Optional[str] = None) -> Signal: | 
|  | 279 | +        return Signal(self, channel=channel, message=message, custom_message_type=custom_message_type) | 
| 279 | 280 | 
 | 
| 280 | 281 |     def set_uuid_metadata(self, uuid: str = None, include_custom: bool = None, custom: dict = None, | 
| 281 | 282 |                           include_status: bool = True, include_type: bool = True, status: str = None, type: str = None, | 
|  | 
0 commit comments