"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4436],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return m}});var o=n(67294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var i=o.createContext({}),s=function(e){var t=o.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=s(e.components);return o.createElement(i.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},d=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),d=s(n),m=r,k=d["".concat(i,".").concat(m)]||d[m]||c[m]||a;return n?o.createElement(k,l(l({ref:t},u),{},{components:n})):o.createElement(k,l({ref:t},u))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,l=new Array(a);l[0]=d;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p.mdxType="string"==typeof e?e:r,l[1]=p;for(var s=2;s {\n const { protocol } = await import("./proto");\n webSocket.send(protocol.LoginRequest.encode(obj));\n });\n}\n')),(0,a.kt)("p",null,"\u6700\u540e\uff0c\u6211\u4eec\u5904\u7406 long \u5e93\uff0c\u8fd9\u662f protobufjs \u4f9d\u8d56\u7684\u5927\u6570\u5e93\u3002"),(0,a.kt)("p",null,"\u6240\u5e78 long \u5e93\u7684\u7f16\u5199\u6bd4\u8f83\u73b0\u4ee3\u5316\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u5c06 ",(0,a.kt)("inlineCode",{parentName:"p"},"node_modules/long/index.js")," \u6587\u4ef6\u590d\u5236\u4e00\u4efd\u5230 worker \u76ee\u5f55\u4e2d\uff0c\u5e76\u91cd\u547d\u540d\u4e3a ",(0,a.kt)("inlineCode",{parentName:"p"},"long.js"),"\u3002"),(0,a.kt)("p",null,"\u7136\u540e\u5728 ",(0,a.kt)("inlineCode",{parentName:"p"},"protobuf.js")," \u6587\u4ef6\u4e2d\u627e\u5230 ",(0,a.kt)("inlineCode",{parentName:"p"},'inquire("long")'),"\uff0c\u6539\u4e3a ",(0,a.kt)("inlineCode",{parentName:"p"},'inquire("./long.js")'),"\uff0c\u5373\u53ef\u5b8c\u6210\u4fee\u6539\u6b63\u5e38\u5bfc\u5165\u3002"))}m.isMDXComponent=!0},56749:function(e,t,n){t.Z=n.p+"assets/images/tws_1-2f2f6b1a9e3bcbd797061af7596cc0a4.png"},73430:function(e,t,n){t.Z=n.p+"assets/images/tws_2-979f7202b7d4c4a542626c5cdef2e04a.png"}}]);